package com.superMarket.project.domain;

/**
 * 水果实体类
 * @author mrguo
 * @date 2024/11/04
 */
public class Fruit {
    /**
     * 水果名称
     */
    private String name;

    /**
     * 水果单价
     */
    private double price = 0d;

    /**
     * 折扣(已折算成小数)
     */
    private double discount = 1d;

    public Fruit(String name, double price, double discount){
        this.name = name;
        this.price = price;
        this.discount = discount;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }
}